package com.neusoft.hifly.rpc.sms.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 阿里大于短信配置
 */
@Component
public class AliyunConfig {
	// 是否启用
	@Value("${aliyun.use:true}")
	private boolean use;

	// 此处需要替换成开发者自己的AK(在阿里云访问控制台寻找)
	@Value("${aliyun.access-key.id:LTAIYqjQ10i0dSGl}")
	private String accessKeyId;

	@Value("${aliyun.access-key.secret:PuRtUKM6KcA6aAu9r8dBeshDwD6TWd}")
	private String accessKeySecret;

	// 必填:短信签名
	@Value("${aliyun.sign-name:畅通数据}")
	private String signName;

	// ####################### 各种模板
	// 通用验证码：您请求的手机验证码为${code}，请在15分钟内完成输入。如非本人操作，请忽略。
	@Value("${aliyun.template.verification:SMS_126866102}")
	private String verificationTemplate;

	public boolean isUse() {
		return use;
	}

	public void setUse(final boolean use) {
		this.use = use;
	}

	public String getAccessKeyId() {
		return accessKeyId;
	}

	public void setAccessKeyId(String accessKeyId) {
		this.accessKeyId = accessKeyId;
	}

	public String getAccessKeySecret() {
		return accessKeySecret;
	}

	public void setAccessKeySecret(String accessKeySecret) {
		this.accessKeySecret = accessKeySecret;
	}

	public String getSignName() {
		return signName;
	}

	public void setSignName(String signName) {
		this.signName = signName;
	}

	public String getVerificationTemplate() {
		return verificationTemplate;
	}

	public void setVerificationTemplate(String verificationTemplate) {
		this.verificationTemplate = verificationTemplate;
	}

}
